<%-- 
    Document   : thank_for_join_email_list
    Created on : Mar 21, 2012, 3:45:52 AM
    Author     : duongna
--%>

<%@page import="java.util.Enumeration"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Thank for joining our email list</title>
    </head>
    <body>
        <%@page import="business.*" %>

        <%
        User user = (User) request.getAttribute("user");   
        if (user == null)                  
            user = new User("", "", "");     
        String message = (String) request.getAttribute("message");
        if (message == null) message = "";
        %>
        <h1><%= message %></h1><br>
        <h1>Thank for joining our email list</h1>
        <p>Here the information that you entered:</p>
        <p>Alo 1231234124124</p>
        <table border="1" cellspacing="5">
            <tr>
                <td align="right">First Name:</td>
                <td><%= user.getFirstName() %></td>
            </tr>
            <tr>
                <td align="right">Last Name:</td>
                <td><%= user.getLastName() %></td>
            </tr>
            <tr>
                <td align="right">Email Address:</td>
                <td><%= user.getEmailAddress() %></td>
            </tr>
        </table>
            <p>To enter another email, click on the Return button following</p>
            <form action="<%= response.encodeURL("join_email_list.jsp") %>" method="post">
                <p><input type="submit" name="returnJoin" value="return"></p>
            </form>
                <a href="search_email_address.jsp">Search email address</a>
    </body>
</html>
